class Calculator{
/*
public static int ret(int i)
{
if(i>0)
return ;
}
public static int max(int x, int y)
{
if(x>y)
return x;
else
return y;
}


public static void years(int year){
if((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
System.out.println(year +"given year is leap year\n");
else
System.out.println(year +"given year is not leap year\n");
}

*/
public static void IsPrim(long num)
{ 
int flag=0;
for(int i=2;i<num;i++)
{
if(num %i==0)
{
System.out.println(num +" is not prime number");
flag=1;
break;
}
}
if(flag==0)
System.out.println(num +" is prime number");


}

public static void main(String []args){

/*
// string to integer type cast

String s="1";
int n=Integer.parseInt(s);

System.out.println(n);

// page 40

int i=9;
if((i>2) && (i<6))
System.out.println("i is the integer bet 2 and 6 ");
else
System.out.println("is is not the integer bet 2 and 6 ");


//given year is leap year or not
 
years(2010);


//the given no is even or odd

int number=43;

if(number%2==0)
System.out.println("the number is even\n");
else
System.out.println("the number is odd\n");


*/
//the given no is prime or not

IsPrim(99991);
/*

// page 46

char ch='c';

switch(ch){
case 'a':System.out.println(ch);
case 'b':System.out.println(ch);
case 'c':System.out.println(ch);
}



// print the string 100 times
int i=0;
while(i<100)
{
System.out.println("I WILL PRACTISE EVERYDAY");
i++;
}



//print even no between 0 to 100

for(int i=0;i<=100;i++)
{
if(i%2 ==0)
System.out.println(i);
} 


//print odd no between 1000 to 5000

for(int i=1000;i<=5000;i++)
{
if(i%2 ==1)
System.out.println(i);
} 



//  print prime no until the max posible

// add max of two no

int res=max(5,8);
System.out.println(res);


// (RETURN ;) WHAT HAPPENS
System.out.println(ret(5));
*/

public static void main(String[] args){
		/*
		
		char[] rs={'g','u','r','u','r','a','j'};
		
		//System.out.println(calculator.print(calculator.rev(rs)));
		calculator.print(rs);
		
		
		int [] res=calculator.fibo(8);
		calculator.print(res);
		//for(int i=0;i<res.length;i++)
		//System.out.println(res[i]);
		
		
		int []eres=calculator.even(20,80);
		calculator.print(eres);
		
		int []eres=calculator.odd(20,80);
		calculator.print(eres);
		
		*/
		int[] sum ={1,3,4,5,10};
		System.out.println(calculator.suma(sum));
		//System.out.println(sum.length);
}
}